package com.lihuanyu.upcOA.service;

import com.lihuanyu.upcOA.conn.databaseUtil;
import com.lihuanyu.upcOA.model.questionTable;

/**
 * Created by LENOVO on 2015/9/1.
 */
public class question {
    public int i;
    public int dbquestion(questionTable question){

        String sql="INSERT INTO `intertalk`( `question`, `stuname`, `uid`, `theme`) " +
                "VALUES ('"+question.getQuestion()+"','"+question.getStuname()+"','"+question.getTeaname()+"','"+question.getTheme()+"')";
        databaseUtil db = new com.lihuanyu.upcOA.conn.databaseUtil();
        i=db.Update(sql);
        db.sqlclose();
        return i;
    }
}
